﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PHMEE
{
    public class VesselBatchTree
    {
        /// <summary>
        /// Id
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 展示名称
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// 中文名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 英文名称
        /// </summary>
        public string NameEn { get; set; }

        /// <summary>
        /// 层级枚举值
        /// </summary>
        public int TypeEnumInt { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Numbers { get; set; } = 1;

        /// <summary>
        /// 启用
        /// </summary>
        public bool IsActive { get; set; } = false;

        /// <summary>
        /// 子集合
        /// </summary>
        public List<VesselBatchTree> Children { get; set; } = new List<VesselBatchTree>();

        /// <summary>
        /// 额外属性
        /// </summary>
        public LevelProperties Properties { get; set; }

    }

    /// <summary>
    /// 额外属性
    /// </summary>
    public class LevelProperties
    {
        /// <summary>
        /// 船舶Id
        /// </summary>
        public Guid? VesselId { get; set; }

        /// <summary>
        /// 机组Id
        /// </summary>
        public Guid? UnitId { get; set; }

        /// <summary>
        /// 设备Id
        /// </summary>
        public Guid? EquipmentId { get; set; }

        /// <summary>
        /// 部件Id
        /// </summary>
        public Guid? ComponentId { get; set; }

    }
}
